<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>{:session('cp.cpsysname')}--服务商管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <link href="__STATIC_URL__/static/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="__STATIC_URL__/static/jquery/2.2.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
    <script>
        wx.config({
            debug: false,
            appId: "{$jssdk['appId']}",
            timestamp: "{$jssdk['timestamp']}",
            nonceStr: "{$jssdk['nonceStr']}",
            signature: "{$jssdk['signature']}",
            jsApiList: [
                'hideAllNonBaseMenuItem'

            ]
        });
        wx.ready(function () {
            wx.hideAllNonBaseMenuItem();

        })
    </script>
    <style type="text/css">
        .thumbnail{
            border: 0;
        }
        .thumbnail img{
            max-width: 150px;
        }
        .btn-group-lg>.btn, .btn-lg{
            font-size: 14px;
            padding: 8px 16px;
        }
    </style>
</head>

<body>
<div>
    <div class="row" style="padding: 30px;">
        <div class="col-sm-6 col-md-4" style="padding: 0;">
            <div class="thumbnail">
                <img src="https://ss0.baidu.com/73t1bjeh1BF3odCf/it/u=348549407,3565430726&fm=85&s=4ADA6D8706EF3EAC7FBC754E03008010" alt="...">
                <div class="caption">
                    <h3 class="text-center">验证码：</h3>
                    <h3 class="text-center">{$mach}</h3>
                    <h4 class="text-center">姓名：{$sy_userinfo['xingming']}</h4>
                    <h4 class="text-center">用户名：{$sy_userinfo['username']}</h4>
                    <h4 class="text-center">工号：{$sy_userinfo['gonghao']}</h4>
                    <h4 class="text-center">账户类型：{:getuserlevel($sy_userinfo['level'])}</h4>
                    <p class="text-center" style="color: #a5a2a3;">你正在为员工帐号进行绑定，点击下方授权按钮将立即发送消息至管理后台，或者输入上方验证码</p>
                </div>
            </div>
        </div>
        <button type="button" class="btn btn-success btn-lg btn-block" id="query">确认授权</button>
    </div>
</div>
<script type="text/javascript">
$(function () {
    $('.btn').click(function () {
        $.ajax({
            type: 'post',
            url: "{:url('Login/query_code_bangding')}",
            //dataType:"json",
            success: function (data) {
                if(data.code==0){
                    alert(data.message);
                }else{
                    alert(data.message);
                }

            }
        })
    })
    
})
    
</script>

</body>
</html>